/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pbv.azsg.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pbv.azsg.domain.Dispenser;
import com.pbv.azsg.dao.IDispenserDAO;

/**
 *
 * @author b.prikhodko
 */
@Service
public class DispenserServiceImpl implements IDispenserService {
    
    @Autowired
    private IDispenserDAO dispenserDAO;

    @Transactional
    public Dispenser getDispenser(Long id) {
        return dispenserDAO.getDispenser(id);
    }
    
    @Transactional
    public Dispenser updateDispenser(Dispenser dispenser){
        return dispenserDAO.updateDispenser(dispenser);
    }
    
}
